<?php
# 引入SDK模块
// 图片大小应该小于10Mb，否则会吞图片发送失败
require_once './sdk/opanapi.php';
require_once './sdk/webhook.php';
require_once './sdk/logger.php';

# 设置Token并开启实例
sdk::init("your_token_here");
data::init();

if (data::$event_type == "message.receive.normal") {
    if (data::$content == "图片") {
        $key = upload::image("./example3.webp");
        send::image(data::$chat_id, data::$chat_type, $key);
    }
}